package com.glodon.service.impl;

import com.glodon.service.UserService;
import com.glodon.service.mapper.UserMapper;
import com.glodon.vo.User;
import  java.util.*;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;

/**
 * Created by wanghy-h on 2017-10-26.
 */
@Service("userService")
public class UserServiceImpl implements UserService {
    @Resource
    private UserMapper userMapper;

    public User login(String userName, String password) {
        User user = userMapper.authentication(userName, password);
        return user;
    }

    public List<User> selectAllUser() {
        return userMapper.selectAllUser();
    }


}
